﻿namespace Community.CsharpSqlite.Entity
{
    /*
 ** An instance of the following structure is passed as the first
 ** argument to sqlite3VdbeKeyCompare and is used to control the
 ** comparison of the two index keys.
 */

    public class KeyInfo
    {
        public CollSeq[] aColl = new CollSeq[1]; /* Collating sequence for each term of the key */
        public byte[] aSortOrder; /* If defined an aSortOrder[i] is true, sort DESC */
        public sqlite3 db; /* The database connection */
        public byte enc; /* Text encoding - one of the TEXT_Utf* values */
        public ushort nField; /* Number of entries in aColl[] */

        public KeyInfo Copy()
        {
            return (KeyInfo) MemberwiseClone();
        }
    };
}